<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>添加维修</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript" src="H-ui.admin/lib/html5shiv.js"></script>
<script type="text/javascript" src="H-ui.admin/lib/respond.min.js"></script>
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css"
	href="H-ui.admin/static/h-ui.admin/css/style.css" />
<script type="text/javascript"
	src="H-ui.admin/lib/DD_belatedPNG_0.0.8a-min.js"></script>
<script>
	DD_belatedPNG.fix('*');
</script>
</head>

<body>
	<article class="page-container"> <nav class="breadcrumb">
	<i class="Hui-iconfont"></i> 首页 <span class="c-gray en">&gt;</span>
	维修列表 <span class="c-gray en">&gt;</span> 添加维修 <a
		class="btn btn-success radius r"
		style="line-height:1.6em;margin-top:3px"
		href="javascript:location.replace(location.href);" title="刷新"><i
		class="Hui-iconfont"></i> </a></nav> <s:form
		action="maintainActionaddMaintain.action"><br>
		<div class="row cl">
			<label class="col-xs-4 col-sm-1">部门：</label>
			<div class="formControls col-xs-3">
				<span class="select-box" style="width:200px;"> 
				<s:if test='#session.user1.sywRole.name=="前台管理员" '>
				<select class="select" name="city" size="1">
						<option value="0">全部</option>
						<option value="4">男更部</option>
						<option value="5">男浴部</option>
						<option value="6">女桑部</option>
						<option value="13">前厅部</option>
				</select>
				</s:if>
				<s:if test='#session.user1.sywRole.name=="收银" '>
				<select class="select" name="city" size="1">
						<option value="0">全部</option>
						<option value="3">收银部</option>
				</select>
				</s:if>
				<s:if test='#session.user1.sywRole.name=="财务" '>
				<select class="select" name="city" size="1">
						<option value="0">全部</option>
						<option value="2">财务部</option>
				</select>
				</s:if>
				<s:if test='#session.user1.sywRole.name=="休闲管理员" '>
				<select class="select" name="city" size="1">
						<option value="0">全部</option>
						<option value="7">休闲部</option>
						<option value="8">餐厅部</option>
				</select>
				</s:if>
				<s:if test='#session.user1.sywRole.name=="保健管理员" '>
				<select class="select" name="city" size="1">
						<option value="0">全部</option>
						<option value="9">客房部</option>
				</select>
				</s:if>
				</span>
			</div>
		</div>
		<br>
		<div class="row cl">
			<label class="col-xs-4 col-sm-1">事由：</label>
			<div class="formControls col-xs-3">
				<textarea name="sywMaintain.event" cols="" rows="" class="textarea"
					placeholder="说点什么...100个字符以内" dragonfly="true"
					onkeyup="$.Huitextarealength(this,100)"
					style="width: 300px;height: 300px;"></textarea>
			</div>
		</div>
		<br />
		<div class="row cl" >
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-1">
				<input class="btn btn-primary radius" type="submit"
					value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</s:form> </article>

	<!--_footer 作为公共模版分离出去-->
	<script type="text/javascript"
		src="H-ui.admin/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="H-ui.admin/lib/layer/2.4/layer.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/static/h-ui/js/H-ui.min.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/static/h-ui.admin/js/H-ui.admin.js"></script>
	<!--/_footer 作为公共模版分离出去-->

	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript"
		src="H-ui.admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/lib/jquery.validation/1.14.0/validate-methods.js"></script>
	<script type="text/javascript"
		src="H-ui.admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
	<script type="text/javascript">
		$(function() {
			$('.skin-minimal input').iCheck({
				checkboxClass : 'icheckbox-blue',
				radioClass : 'iradio-blue',
				increaseArea : '20%'
			});

			$("#form-member-add").validate({
				rules : {
					username : {
						required : true,
						minlength : 2,
						maxlength : 16
					},
					sex : {
						required : true,
					},
					mobile : {
						required : true,
						isMobile : true,
					},
					email : {
						required : true,
						email : true,
					},
					uploadfile : {
						required : true,
					},

				},
				onkeyup : false,
				focusCleanup : true,
				success : "valid",
				submitHandler : function(form) {
					//$(form).ajaxSubmit();
					var index = parent.layer.getFrameIndex(window.name);
					//parent.$('.btn-refresh').click();
					parent.layer.close(index);
				}
			});
			$("#handsid").blur(function() {
				var handsid = $("#handsid").val();

				if (handsid.length != 4) {
					$("#mag").html("手牌号长度为4位数字");
				} else {
					$("#mag").html("");
				}
			});
		});
	</script>
	<!--/请在上方写此页面业务相关的脚本-->

</body>
</html>
